package com.example.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;


@TableName("notice")
@Data
public class Notice {
    public static final String ID = "id";
    public static final String NAME = "name";
    public static final String DESCRIPTION = "description";
    public static final String TIME = "time";
    public static final String USER_ID = "user_id";

    @TableId(value = ID, type = IdType.AUTO)
    private Integer id;

    @TableField(USER_ID)
    private Integer userId;

    @TableField(NAME)
    private String name;

    @TableField(DESCRIPTION)
    private String description;

    @TableField(TIME)
    private String time;
}